package com.hd.service.impl;

import com.hd.mapper.XPartMapper;
import com.hd.pojo.XPart;
import com.hd.service.XPartService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by XPartServiceImpl on 2017/11/23.
 */
@Service("xPartService")
@Transactional
public class XPartServiceImpl implements XPartService{

    @Resource
    private XPartMapper xPartMapper;

    @Override
    public List<XPart> getAllXPart() {
        return xPartMapper.searchPart();
    }
}
